package com.song.sample.dao;

import com.song.sample.config.pagination.Page;
import com.song.sample.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @desc: 
 * @author: WUSONG
 * @date: 2018/6/25 0025 下午 3:31
 */
public interface UserMapper {

    User getUserById(Long userId);

    Page<User> queryAllUsers(@Param("user") User user, Pageable pageable);

    List<String> queryAllPerms(Long userId);

    User selectOne(User user);
}
